
<div id="list-file" class="content scaffold-list" role="main">
	<h1><g:message code="file.list.label" default="Added files" /></h1>
	<div style="height: 150px; overflow: auto;">
	<table>
		<thead>
			<tr>
			
				<th><g:message code='file.added.label' default='Added'/></th>
			
				<th><g:message code='file.name.label' default='Name'/></th>
			
				<th><g:message code='file.description.label' default='Description'/></th>
			
				<th><g:message code='file.type.label' default='Type'/></th>
			
			</tr>
		</thead>
		<tbody>
		<g:each in="${fileInstanceList}" status="i" var="fileInstance">
			<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
			
				<td><g:formatDate date="${fileInstance?.dateCreated}" type="datetime" /></td>
			
				<td><g:link controller="file" action="download" id="${fileInstance.id}">${fileInstance.name.encodeAsHTML()}</g:link></td>
				
				<td>${fileInstance.description.encodeAsHTML()}</td>
			
				<td>${fileInstance.type}</td>
			
			</tr>
		</g:each>
		</tbody>
	</table>
	</div>
</div>

